package com.quanyue.haircut.order.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;

@Data
@Table
public class UserByConsume {
    @Column(name = "id")
    @ApiModelProperty(required = true, value = "用户ID")
    private String id;
    @Column(name = "title")
    @ApiModelProperty(required = true, value = "vip备注")
    private String title;
    @Column(name = "card_id")
    @ApiModelProperty(required = true, value = "卡片ID")
    private String cardId;
    @Column(name = "nick_name")
    @ApiModelProperty(required = true, value = "昵称")
    private String nickName;
    @Column(name = "phone")
    @ApiModelProperty(required = true, value = "电话")
    private String phone;
    @Column(name = "head_image")
    @ApiModelProperty(required = true, value = "头像")
    private String headImage;
    @Column(name = "sex")
    private Integer sex;
    @Column(name = "balance")
    @ApiModelProperty(required = true, value = "卡余额")
    private BigDecimal balance;
    @Column(name = "integral")
    @ApiModelProperty(required = true, value = "积分")
    private BigInteger integral;
    @Column(name = "create_time")
    private LocalDateTime createTime;
    @Column(name = "consume_count")
    @ApiModelProperty(required = true, value = "消费次数")
    private Integer consumeCount;
    @Column(name = "consume_price")
    @ApiModelProperty(required = true, value = "消费金额")
    private Integer consumePrice;
}
